package main

import (
	"bytes"
	"fmt"
	"os/exec"
)

func main() {
	cmd := exec.Command("/bin/bash","-c","/home/lihao/go/src/docker-test/deploy-jar.sh")
	stdOut := &bytes.Buffer{}
	stdErr := &bytes.Buffer{}
	cmd.Stdout = stdOut
	cmd.Stderr = stdErr

	err := cmd.Run()
	if err != nil {
		fmt.Println(err.Error())
	}
	fmt.Println(stdOut.String())
}
